export default {
  // 获取平台设备
  get() {
    let platform = "";
    // 进行宏定义
    // #ifdef H5
    platform = "H5";
    // #endif

    // #ifdef APP-PLUS
    platform = "App"
    // #endif

    // #ifdef MP-WEIXIN
    platform = 'wxMiniProgram';
    // #endif

    // #ifdef MP-ALIPAY
    platform = 'alipayMiniProgram';
    // #endif

    if (platform !== "") {
      uni.setStorageSync("platform", platform)
    } else {
      uni.showToast({
        title: "暂不支持该平台",
        icon: "none"
      })
    }
    return platform;
  }
}